package com.kingdee.eas.cp.bc.baseData;

import com.kingdee.bos.BOSException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;
import com.kingdee.bos.eventbus.event.action.KDActionEvent;
import com.kingdee.bos.webframework.exception.WafException;
import com.kingdee.bos.webframework.json.JSONUtils;
import com.kingdee.bos.webframework.dynamic.handler.AbstractWebEventHandler;
import com.kingdee.bos.eventbus.event.action.IActionEventHandler;
import com.kingdee.eas.basedata.assistant.CurrencyFactory;
import com.kingdee.eas.basedata.assistant.CurrencyInfo;
import com.kingdee.eas.common.EASBizException;
import com.kingdee.eas.custom.basedata.EvectionSubsiFactory;
import com.kingdee.eas.custom.basedata.EvectionSubsiInfo;

public class CurrencyTypeHandler extends AbstractWebEventHandler implements IActionEventHandler {
	public void onAction(KDActionEvent event) throws WafException,BOSException {
		String name=event.getReqeustContext().getHttpServletRequest().getParameter("name");
		CurrencyInfo info = new CurrencyInfo();
		info = CurrencyFactory.getRemoteInstance().getCurrencyCollection("where name='"+name+"'").get(0);
		JSONUtils.SUCCESS(info);
	}
}